package com.springboot.returndata.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *     自定义模板
 * 
 * </p>
 * 自定义属性注入abc=
 * @author zyj
 * @since 2021-04-01
 */
@Data
public class UserLoginDto implements Serializable {

private static final long serialVersionUID = 1L;

    /**
    * 登录名
    */
    @Schema(description="登录名")
    @NotNull(message = "登录名密码不能为空")
    private String userLoginName;


    @Schema(description="密码")
    @NotNull(message = "登录名密码不能为空")
    @Size(min = 3, max = 16, message = "密码长度在3-16")
    private String userPassword;

    @Schema(description="验证码")
    @NotNull(message = "验证码密码不能为空")
    @Size(min = 4, max = 4, message = "验证码")
    private String captcha;


}
